<template>
    <div class="chart-box">
        <div class="layer-bg">
            <div class="top-bg">
                <img class="bg-ani" src="@/assets/bg-layer.png" alt="">
                <img src="@/assets/dalou.png" alt="">
            </div>
            <div class="line-light"></div>

            <img src="@/assets/dizuo.png" alt="">
        </div>
        <div class="card-layer">
            <div class="layer-col">
                <div class="card c-1">
                    <img src="@/assets/gg_img1.png" alt="">
                    <div class="t-1">97.30%</div>
                    <div class="t-2"><img src="@/assets/up.png" alt="">4.30%</div>
                    <div class="t-3">全网办案率</div>
                    <div class="t-4">目标值：99%</div>
                </div>
                <div class="card">
                    <img src="@/assets/gg_img1.png" alt="">
                    <div class="t-1">97.30%</div>
                    <div class="t-2"><img src="@/assets/down.png" alt="">4.30%</div>
                    <div class="t-3">电子送达率</div>
                    <div class="t-4">目标值：99%</div>
                </div>
            </div>
            <div class="layer-col">
                <div class="card c-3">
                    <img src="@/assets/gg_img1.png" alt="">
                    <div class="t-1">97.30%</div>
                    <div class="t-2"><img src="@/assets/down.png" alt="">4.30%</div>
                    <div class="t-3">单套归档率</div>
                    <div class="t-4">目标值：99%</div>
                </div>
                <div class="card">
                    <img src="@/assets/gg_img1.png" alt="">
                    <div class="t-1">97.30%</div>
                    <div class="t-2"><img src="@/assets/up.png" alt="">4.30%</div>
                    <div class="t-3">数字庭审率</div>
                    <div class="t-4">目标值：99%</div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>

export default {
    name: "CenterModule",
    data() {
        return {

        }
    },
    mounted() {
    }
}
</script>

<style lang="less" scoped>
.chart-box {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;

    .layer-bg {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        display: flex;
        justify-content: center;

        .top-bg {
            position: absolute;
            z-index: 999;
            bottom: 122px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;

            img {
                position: absolute;
                bottom: 0;

                &:first-child {
                    width: 78%;
                    bottom: 25px;
                }
            }
        }
    }

    .card-layer {
        display: flex;
        justify-content: space-between;
        padding: 0 70px;
        height: 100%;

        .layer-col {
            display: flex;
            justify-content: space-between;
            flex-direction: column;
            padding: 90px 0 60px;

            .card {
                position: relative;
                display: flex;
                flex-direction: column;
                align-items: center;
                animation: ani 2s linear;
                animation-iteration-count: infinite;
                animation-direction: alternate-reverse;

                &>img {
                    position: absolute;
                    width: 136px;
                    top: 0;
                    z-index: 0;
                }

                div {
                    position: relative;
                    z-index: 1;

                }

                .t-1 {
                    font-size: 30px;
                    font-weight: 400;
                    color: #FFFFFF;
                }

                .t-2 {
                    font-size: 16px;
                    text-align: center;
                    line-height: 25px;
                    color: #FFFFFF;
                    display: flex;
                    align-items: center;

                    img {
                        height: 15px;
                        margin: 0 8px 0 0;
                    }
                }

                .t-3 {
                    font-size: 18px;
                    text-align: center;
                    color: #00CCFF;
                    margin: 35px 0 0;
                }

                .t-4 {
                    font-size: 18px;
                    text-align: center;
                    font-weight: 400;
                    color: #FABE06;
                    margin: 2px 0 0;
                }
            }

            .c-1 {
                position: relative;
                left: 100px;
            }

            .c-3 {

                margin: 0 0 0 -210px;
            }

        }
    }
}

@keyframes ani {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(15px);
    }
}

.bg-ani {
    animation: ani-light 6s linear;
    animation-direction: alternate-reverse;
    animation-iteration-count: infinite;
    transform-origin: center bottom;
}

@keyframes ani-light {
    from {
        transform: rotateY(0);
    }

    to {
        transform: rotateY(360deg);
    }
}

.line-light {
    width: 417px;
    height: 257px;
    border: 5px dashed #358cbf;
    position: absolute;
    bottom: 20px;
    border-radius: 50%;
    transform: rotateX(52deg);
    animation: ani-line-light 2s linear;

    animation-direction: alternate-reverse;
    animation-iteration-count: infinite;
    box-shadow: 0 0 5px 2px #00CCFF;
}

@keyframes ani-line-light {
    from {
        box-shadow: 0 0 5px 2px #1da3c57a;
    }

    to {
        border-left-color: #e29599;
        border-top-color: #1256bd;
        border-bottom-color: #73c531;
        border-right-color: #6a37c7;
        box-shadow: 0 30px 20px 2px #635cc570, 0 30px 20px 2px #635cc570;
    }
}
</style>